<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>用户注册_{:C('site.sitename')}</title>
        <link rel="stylesheet" type="text/css" href="__USERS__/css/user_style.css" />
        <link rel="stylesheet" type="text/css" href="__USERS__/css/user_register.css" />
        <script src="__TOURS__/js/jquery-1.7.2.min.js" type="text/javascript"></script>
        <script type="text/javascript">
            window.onload = function () {
                $('#img_code').attr('src', '/pub/verify?' + Math.random());
            }
        </script>
    </head>
    <body>
        <!--顶部-->

        {include file="user/userheader" /}
        {switch name="email_num" }
        {case value="1|2"}
        <!--注册成功-->
        <div class="register">
            <h2 id="formh2">请及时查收邮件</h2>
            <div class="regsuccess">
                <img src="__USERS__/images/success.gif" />
                <div class="txtbox">
                    <p>邮件已送达&lt;{$emails}&gt;，请在24小时内<a href="{$email_address}" target="_blank">【登录邮箱】</a>，完成注册！如未收到邮件，请点击<a href="javascript:;" id="retform">【再次发送】</a>。</p>					
                </div>
            </div>

            <div class="retform">
                <form action="{:U('/user/register','','',false,true)}" method="post" id="reg-form">
                    <ul class="regbox">
                        <li>
                            <em class="mobile"></em>
                            <input name="mobile" id="mobile" type="text" class="inputstyle" value="" />					
                            <span class="Validform_checktip"></span>
                        </li>
                        <li>
                            <em class="email"></em>
                            <input name="email" id="email" type="text" class="inputstyle" value="" />
                            <span class="Validform_checktip"></span>
                        </li>

                        <li>
                            <em class="chilun"></em>
                            <input name="verify" onclick="javascript:$('#img_code').attr('src', '/pub/verify?' + Math.random());" id="verify" type="text" class="yz_input" value="" style="width:160px;" />
                            <a class="under" href="javascript:void(0)" onclick="javascript:$('#img_code').attr('src', '/pub/verify?' + Math.random());"><img src="/pub/verify" style="cursor: pointer;" width="110" title="看不清，换一张?" id="img_code" border="0" onclick='javascript:this.src = "/pub/verify?" + Math.random()' /></a>
                            <span class="flt Validform_checktip"></span>
                        </li>

                        <li>
                            <button class="form_btn" type="submit">立刻注册</button>
                        </li>

                    </ul>
                </form>	
            </div>
        </div>
        <!--over-->
        {/case}
        {case value="3"}
        <!--超出发件次数-->
        <div class="register">
            <h2>发件次数已用完</h2>
            <div class="regsuccess">
                <img src="__USERS__/images/error.gif" />
                <div class="txtbox">
                    <p>亲！您今日的发件次数已用完，请明日再试！您也可以拨打 <font style='color: #F60;'>{:C('telephone')}</font>，让客服为您处理。</p>					
                </div>
            </div>
        </div>
        <!--over-->
        {/case}
        {default /}
        <!--注册开始-->
        <div class="register">
            <h2>用户注册</h2>
            <form action="{:U('user/register','','',false,true)}" method="post" id="reg-form">
                <ul class="regbox">
                    <li>
                        <em class="mobile"></em>
                        <input name="mobile" id="mobile" type="text" class="inputstyle" value="" />					
                        <span class="Validform_checktip"></span>
                    </li>
                    <li>
                        <em class="email"></em>
                        <input name="email" id="email" type="text" class="inputstyle" value="" />
                        <span class="Validform_checktip"></span>
                    </li>

                    <li>
                        <em class="chilun"></em>
                        <input name="verify" id="verify" type="text" onclick="javascript:$('#img_code').attr('src', '/pub/verify?' + Math.random());" class="yz_input" value="" style="width:160px;"  />
                        <a class="under" href="javascript:void(0)" onclick="javascript:$('#img_code').attr('src', '/pub/verify?' + Math.random());"><img src="/pub/verify" style="cursor: pointer;" width="110" title="看不清，换一张?" id="img_code" border="0" onclick='javascript:this.src = "/pub/verify?" + Math.random()' /></a>
                        <span class="flt Validform_checktip"></span>
                    </li>

                    <li>
                        <button class="form_btn" type="submit">立刻注册</button>
                    </li>

                </ul>
            </form>	
        </div>
        <!--注册结束-->

        {/switch}
        <!--footer-->
        {include file="user/userfooter" /}
        <script type="text/javascript" src="__USERS__/js/Validform_v5.3.2_min.js"></script>
        <script type="text/javascript" src="__USERS__/js/reg.js"></script>
    </body>
</html>